package cn.com.liuwenquan.flex.business.Delegates
{
	import com.adobe.cairngorm.business.ServiceLocator;
	import mx.rpc.IResponder;
	
	public class CustomerDelegate
	{
		private var responder:IResponder;
		private var service:Object;
		
		public function CustomerDelegate(responder :IResponder)
		{
			this.service = ServiceLocator.getInstance().getRemoteObject("customerRo");
		    this.responder = responder;
		}
		//取客户信息
		public function getCustomerInfo():void{
			var call:Object = service.getCustomer();
			call.addResponder(responder);
		}
	}
}